from apiflask import APIBlueprint
from schema.device import DeviceInSchema,DeviceOutSchema

apps = APIBlueprint('app',__name__,url_prefix='/app')

from modules import device

@apps.get('/get')
@apps.doc(summary='获取应用', description='获取应用信息')
def getDeviceInfo():
    return device.get()

@apps.post('/add')
@apps.doc(summary='新增设备', description='新增设备信息（存在该设备 则更新设备信息）')
def setDeviceInfo():
    return device.get()